package cn.mujiankeji.mbrowser.工具

import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.pointerInput

/**
 * 无点击效果的点击
 */
fun Modifier.clickable2(clickable : ()->Unit) : Modifier {
    return this.pointerInput(Unit){
        detectTapGestures(onTap = {
            clickable()
        })
    }
}